<?php

class Event(){

public function selectEvent($event){

$eventSelected = $_POST[$event];

$dbConn = odbc_Connect('name', 'ID', 'Password');

$sql = "Select EventID, EventName, Price, Date, Ad_ID, SponsorID, VenueID, Time FROM EVENT WHERE Event_Name = '.$eventSelected.'";

$rs_select = ODBC_Exec('dbConn', '$sql');

return ($rs_select);

echo $rs_select;

odbc_close($dbConn);

}
}

?>